#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH
apt install  ca-certificates locales  -y 2>/dev/null
dir=$(pwd)

# Change Locale
rm -rf /etc/locale.gen
rm -rf /etc/default/locale
rm -rf /etc/default/locale.conf
cd /etc/
wget https://gitee.com/xiaoh5001/android-linux-bootstrap/raw/master/locale.gen > /dev/null 2>&1
locale-gen
cd /etc/default/
wget https://gitee.com/xiaoh5001/android-linux-bootstrap/raw/master/locale.conf > /dev/null 2>&1
cp locale.conf locale
# Delete self
cd ${dir}
rm -rf LocaleCN.sh
